Skip to content

feat: forward --plugin to JSS — serve a directory and mount apps (0.0.9) - #8

Merged
melvincarvalho merged 1 commit into
mainfrom
feat/forward-plugin-flag
Jul 11, 2026
Merged

feat: forward --plugin to JSS — serve a directory and mount apps (0.0.9)#8
melvincarvalho merged 1 commit into
mainfrom
feat/forward-plugin-flag

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Completes the plugin tie-in planned in JSS#592/#594.

What

servejss --plugin './chat/plugin.js@/chat' ./public

serves ./public with the usual read/write REST semantics and mounts the JSS app plugin at /chat — one command, no config file.

  • The --plugin value is forwarded verbatim to jss start --plugin (JSS 0.0.217, #594). jsserve does no plugin-spec parsing, consistent with the How-it-works contract: JSS owns loading and validation, the wrapper owns the CLI. Repeatable.
  • New Plugins: banner line lists the mounts.
  • JSS floor >=0.0.211>=0.0.217, lockfile refreshed against the registry, version 0.0.9.
  • README: option entry, install-note update, a Static Site + Live App use case (with the shell-quoting caveat for scoped packages), and the Output example updated to the current banner text.

Verified

Against registry-installed JSS 0.0.217: static GET serves, PUT → 201, plugin route answers on /hello-app/hello, banner shows Mode: … (public, no auth) and the Plugins: line. Served directory stays clean (no index.html/.acl; .plugins/ only appears if a mounted plugin uses its storage API — the pluginDataDir follow-up lives in JSS#592).

servejss --plugin './chat/plugin.js@/chat' ./public serves the
directory and mounts the app in one command. The value is forwarded
verbatim to jss start --plugin (#594, JSS 0.0.217) — jsserve does no
plugin parsing, keeping the How-it-works split: JSS owns loading and
validation, the wrapper owns the CLI. Repeatable; mounts are listed
on a new Plugins banner line.

JSS floor raised to >=0.0.217 (the release with the flag), lockfile
refreshed, version bumped to 0.0.9. README gains the option, a
Static Site + Live App use case (with shell-quoting caveat for scoped
packages), and the Output example catches up with the 0.0.8 banner.
@melvincarvalho
melvincarvalho merged commit fcf9ef4 into main Jul 11, 2026
@melvincarvalho
melvincarvalho deleted the feat/forward-plugin-flag branch July 11, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant